package sm.codec.exception;

import org.apache.mina.core.buffer.IoBuffer;

public class EncodeException extends Exception {

	private static final long serialVersionUID = -6237315622561849483L;

	private IoBuffer buffer;

	private Object value;

	public Object getValue() {
		return value;
	}

	public IoBuffer getBuffer() {
		return buffer;
	}

	public EncodeException(String s, IoBuffer buffer, Object value) {
		super(s);
		this.buffer = buffer;
		this.value = value;
	}

	public EncodeException(String s, Throwable throwable, IoBuffer buffer,
			Object value) {
		super(s, throwable);
		this.buffer = buffer;
		this.value = value;
	}
}
